package org.OpenGeoPortal.Map;

/**
 * code to support map related issues
 * @author smcdon08
 *
 */
public class Util 
{

	/**
	 * return the google map key for the passed server
	 * @param serverName
	 * @return
	 */
	public static String getGoogleMapApiKey(String serverName)
	{
		if (serverName.contains("geoportal-dev") || serverName.contains("localhost"))
			return "ABQIAAAA0YX56Z0T_wsqnjnh0FSo6hTczBW_JPEN8YnP-lFCuqbatsb9nhS9AH9czJunfMymGi-Ho9RIue1IUQ";
		else if (serverName.contains("geoportal-demo"))
			return "ABQIAAAA0YX56Z0T_wsqnjnh0FSo6hRgk60IchzCp0qt8sKq9Xq77eHaFhRxeZ8z4tpGgz5n7DoQ-h7EME3DrQ";
		else
			return "";
	}
}
